<html><head>

        <link href="<?php echo base_url('assets/css/formkelahiran.css'); ?>" rel="stylesheet" type="text/css">
        <title>Laporan Kelahiran Penduduk</title>
    </head>
    <body>

        <table width="80%" border="0" align="center">
            <tr>
                <td colspan="3" class="trheader">Laporan  Kelahiran Penduduk <br>
                    Kategori : Per Nomor Formulir Kelahiran</td>
            </tr>
            <tr>
                <td colspan="3" class="cari">&nbsp;</td>
            </tr>
            <form action="<?php echo base_url('kelahiran/cetak_suratketerangan'); ?>" method="post">
                <tr>
                    <td colspan="3" class="cari">Cari No. Form 
                        <input type="text" name="no_form" id="no_form" class="textinput" placeholder="No. Formulir" />
                        <input type="submit" name="cari" id="cari" value="Cari" class="btn btn-large"/></td>
                </tr>
            </form>
            <tr>
                <td colspan="3">&nbsp;</td>
            </tr>
            <tr>
                <td width="92%" bordercolor="#666666" class="tampilcari"><div align="center">Data kelahiran dengan No. Formulir : <?php echo isset($nomor_form->no_form) ? $nomor_form->no_form : ''; ?></div></td>
            </tr> 
        </table>


        <table width="80%" border="0" align="center">
            <tr>
                    <td colspan="11" class="trheader">Laporan  Kelahiran Penduduk</td>
                </tr>
                <tr>
                    <td colspan="11" class="jeda">&nbsp;</td>
                </tr>
                <tr>
                <td width="4%"><div align="center"><strong>No.</strong></div></td>
                <td width="19%"><div align="center"><strong>No Surat Keterangan</strong></div></td>
                <td width="13%"><div align="center"><strong>Nama Ibu</strong></div></td>
                <td width="13%"><div align="center"><strong>Nama Bayi</strong></div></td>
                <td width="10%"><div align="center"><strong>Jen. Kelamin</strong></div></td>
                <td width="13%"><div align="center"><strong>Tempat Lahir</strong></div></td>
                <td width="12%"><div align="center"><strong>Tanggal Lahir</strong></div></td>
                <td width="8%"><div align="center"><strong>Berat (kg)</strong></div></td>
                <td width="8%"><div align="center"><strong>Panjang (cm)</strong></div></td>
            </tr>
            <?php
            if (isset($kelahiran)) {
                $no = 1;
                foreach ($kelahiran->result() as $data_kelahiran) {
                    echo '<tr>';
                    echo '<td><div align="center">' . $no++ . '</div></td>';
                    echo '<td><div align="center">' . $data_kelahiran->no_form . '</div></td>'; //data menurut alias model
                    echo '<td>' . $data_kelahiran->nama_ibu . '</div></td>';
                    echo '<td>' . $data_kelahiran->namabayi . '</td>';
                    echo '<td><div align="center">' . $data_kelahiran->jenis_kelaminbayi . '</div></td>';
                    echo '<td>' . $data_kelahiran->tempat_kelahiran . '</td>';
                    echo '<td>' . $this->tanggal->tanggal_indonesia($data_kelahiran->tanggal_lahir) . '</td>';
                    echo '<td><div align="center">' . $data_kelahiran->brt_bayi . '</div></td>';
                    echo '<td><div align="center">' . $data_kelahiran->pjg_bayi . '</div></td>';

                    echo '</tr>';
                }
            }
            ?>
        </table>

        <br>
        <table width="100%">
            <tr>
                <td class="cetak"><div align="center"><a href="<?php echo base_url('cetak_laporan_kelahiran/cetak_kelahiran'); ?>">Cetak Formulir</a></div></td>
            </tr>
        </table>

        

        <br>



    </body>
</html>
